package Test3;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/15 11:17
 */
public class Print {
    public void open(){
        System.out.println("开机");
    }
    public  void print(){
        System.out.println("打印");
    }
    public void close(){
        System.out.println("确认要关机吗？");
        Scanner sc=new Scanner(System.in);
        String s=sc.nextLine();
        if (s.equalsIgnoreCase("y")){
            System.out.println("关机");
        }
        System.out.println("关机");
    }
}
